<?php
namespace prototype;

class MoneyPrototype implements PrototypeInterface
{
    protected $_name;
    protected $_bankName;
    protected $_faceValue;

    public function __construct()
    {
        echo "初始化人民币模板~\n";
    }

    public function clone()
    {
        return clone $this;
    }

    public function __clone()
    {
        echo "我被克隆了~\n";
    }

    public function __set($name, $value) 
    {
        $this->$name = $value;
    }

    public function __get($name)
    {
        return $this->$name;
    }

}